﻿using Basic.UserCollect;
using Basic.UserModel.WxUser;
using Basic.UserRemoteModel.WxLogin;
using WeDonekRpc.Client.Interface;

namespace Basic.UserService.RpcEvent
{
    internal class WxUserEvent : IRpcApiService
    {
        private readonly IWxUserCollect _WxUser;

        public WxUserEvent (IWxUserCollect wxUser)
        {
            this._WxUser = wxUser;
        }

        public void CancelBind (CancelBind obj)
        {
            WxUserDto user = this._WxUser.GetUser(obj.WxUserId);
            this._WxUser.Cancel(user);
        }
    }
}
